package com.sq.partner.manager.dao.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.sq.partner.manager.dao.INlifeCoreRiskCovDao;
import com.sq.partner.manager.mybatis.model.NlifeCoreRiskCov;

@Repository
public class NlifeCoreRiskCovDaoImpl extends BaseDaoImpl implements
		INlifeCoreRiskCovDao {

	@Override
	public void insertCoreRiskCovs(List<NlifeCoreRiskCov> list)
			throws Exception {
		this.batchInsert("insertNlifeCoreRiskCov", list);	
		
	}

	@Override
	public NlifeCoreRiskCov queryByRiskCov(String coreRiskCode,String coreCovCode) throws Exception {
		Map<String, String> map = new HashMap<String, String>();
		map.put("coreRiskCode", coreRiskCode);
		map.put("coreCovCode", coreCovCode);
		NlifeCoreRiskCov nlifeCoreRiskCov = (NlifeCoreRiskCov)this.query("queryNlifeCoreRiskCovByMap",map);

		return nlifeCoreRiskCov;
	}
}
